package cn.honglian.org.mapper;

import cn.honglian.basic.mapper.BaseMapper;
import cn.honglian.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {


    List<Employee> findByIds(Long id);

    Employee findByName(String username);

    List<Employee> findByIdss(List<Long> ids);

    void addBatch(@Param("empid") Long empid, @Param("roles") List<Long> roles);

    void deleteEmpAndRole(Long empId);
}
